
from math import sqrt

def NOT(f):
    ret = {}
    for el in f.keys():
        ret[ el ] = 1- f[el]
        
    return ret

def VERY(f):
    ret = {}
    for el in f.keys():
        ret[ el ] = f[el] ** 2
        
    return ret


def FAIRLY(f):
    ret = {}
    for el in f.keys():
        ret[ el ] = sqrt(f[el]) 
        
    return ret